import { uniRequset } from '@/utils/request'
import type { sku_data_item } from '@/types/sku'
import type { sku_order_data_type } from '@/types/sku'
export const getSkuListApi = (id: number) => {
  return uniRequset<sku_data_item>({
    url: `/sku/get_sku/${id}/`,
    method: 'GET',
  })
}
export const getSkuByIdApi = (sku_id_list: number[]) => {
  return uniRequset<sku_order_data_type[]>({
    url: `/sku/get_sku_by_id/`,
    method: 'GET',
    data: { sku_id_list: sku_id_list },
  })
}
export const getSkuByOrderNumberAPI = (order_number: string) => {
  return uniRequset<sku_order_data_type[]>({
    url: `/sku/get_sku_by_order_number/`,
    method: 'GET',
    data: { order_number: order_number },
  })
}
